from django.utils.deprecation import MiddlewareMixin
from rest_framework.response import Response


class Token11(MiddlewareMixin):
    def process_request(self, request):
        setattr(request, '_dont_enforce_csrf_checks', True)